export default (Vue) => {
  Vue.filter('DataflowStatus', (type) => {
    /*eslint-disable*/
    switch (type) {
      case 'ORDER':
        return '已下单'
        break
      case 'SUCCESS':
        return '成功'
        break
      case 'PROCESS':
        return '处理中'
        break
      case 'DELAY':
        return '延时处理'
        break
      case 'FAILED':
        return '失败'
        break
      case 'INVALID':
        return '无效'
        break
      default:
        return type
    }
  /*eslint-enable*/
  })
}
